package com.jic.member.mapper;

import com.jic.member.entity.TGroupLabelRelation;

import java.util.List;

public interface TGroupLabelRelationMapper {
    /**
     * T_GROUP_LABEL_RELATION插入数据
     *
     * @param tGroupLabelRelation 入参实体类
     */
    int insert(TGroupLabelRelation tGroupLabelRelation);

    /**
     * T_GROUP_LABEL_RELATION插入数据
     *
     * @param tGroupLabelRelation 入参实体类
     */
    int insertSelective(TGroupLabelRelation tGroupLabelRelation);

    /**
     * T_GROUP_LABEL_RELATION根据表对象数据修改数据
     *
     * @param tGroupLabelRelation 入参实体类
     */
    int updateByPrimaryKey(TGroupLabelRelation tGroupLabelRelation);

    /**
     * T_GROUP_LABEL_RELATION根据表对象数据修改数据
     *
     * @param tGroupLabelRelation 入参实体类
     */
    int updateByPrimaryKeySelective(TGroupLabelRelation tGroupLabelRelation);

    /**
     * T_GROUP_LABEL_RELATION根据id删除数据
     *
     * @param tGroupLabelRelation 入参实体类
     */
    int deleteByPrimaryKey(TGroupLabelRelation tGroupLabelRelation);

    /**
     * T_GROUP_LABEL_RELATION根据主键查询数据
     *
     * @param tGroupLabelRelation 入参实体类
     */
    TGroupLabelRelation selectByPrimaryKey(TGroupLabelRelation tGroupLabelRelation);

    /**
     * T_GROUP_LABEL_RELATION根据主键查询数据
     *
     * @param tGroupLabelRelation 入参实体类
     */
    List<TGroupLabelRelation> listPageBySelective(TGroupLabelRelation tGroupLabelRelation);

    /**
     * T_GROUP_LABEL_RELATION查询数据
     *
     * @param tGroupLabelRelation 入参实体类
     */
    List<TGroupLabelRelation> selectBySelective(TGroupLabelRelation tGroupLabelRelation);

    /**
     * T_GROUP_LABEL_RELATION根据id删除数据
     *
     * @param userGroupId
     */
    int deleteByUserGroupId(Long userGroupId);


    /**
     * T_GROUP_LABEL_RELATION查询数据
     *
     * @param tGroupLabelRelation 入参实体类
     */
    List<Long> selectByUserGroupId(TGroupLabelRelation tGroupLabelRelation);

    /**
     * T_GROUP_LABEL_RELATION查询数据
     *
     * @param tGroupLabelRelation 入参实体类
     */
    List<Long> selectDeptIdByUserGroupId(TGroupLabelRelation tGroupLabelRelation);
    /**
     * T_GROUP_LABEL_RELATION根据id删除数据
     *
     * @param tGroupLabelRelation
     */
    int deleteByUserGroup(TGroupLabelRelation tGroupLabelRelation);

    /**
     * description: 查询用户组标签数
     *
     * @author: jackHe
     * @time: 2020/6/16 13:45
     */
    Integer getUserGroupLabelCount(TGroupLabelRelation tGroupLabelRelation);

}
